package com.atguigu.service.impl;


import com.atguigu.dao.HouseImageDao;
import com.atguigu.entity.HouseImage;
import com.atguigu.service.HouseImageService;
import com.github.pagehelper.PageInfo;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@DubboService
@Transactional
public class HoueImageServiceImpl implements HouseImageService {

    @Autowired
    private HouseImageDao houseImageDao;
    @Override
    public List<HouseImage> findList(Long houseId, Integer type) {
        return houseImageDao.findList(houseId,type);
    }

    @Override
    public Integer insert(HouseImage houseImage) {
        return houseImageDao.insert(houseImage);
    }

    @Override
    public HouseImage getById(Serializable id) {
        return null;
    }

    @Override
    public Integer update(HouseImage houseImage) {
        return null;
    }

    @Override
    public void delete(Serializable id) {

    }

    @Override
    public PageInfo<HouseImage> findPage(Map<String, Object> filters) {
        return null;
    }
}
